//
//  SHYRouterTests.m
//  SHYRouterTests
//
//  Created by [sunhaiyan] on 06/20/2016.
//  Copyright (c) 2016 [sunhaiyan]. All rights reserved.
//

// https://github.com/kiwi-bdd/Kiwi

SPEC_BEGIN(InitialTests)

describe(@"My initial tests", ^{

  context(@"will fail", ^{

      it(@"can do maths", ^{
          [[@1 should] equal:@2];
      });

      it(@"can read", ^{
          [[@"number" should] equal:@"string"];
      });
    
      it(@"will wait and fail", ^{
          NSObject *object = [[NSObject alloc] init];
          [[expectFutureValue(object) shouldEventually] receive:@selector(autoContentAccessingProxy)];
      });
  });

  context(@"will pass", ^{
    
      it(@"can do maths", ^{
        [[@1 should] beLessThan:@23];
      });
    
      it(@"can read", ^{
          [[@"team" shouldNot] containString:@"I"];
      });  
  });
  
});

describe(@"isValidString", ^{
   
    context(@"ss", ^{
       NSString *s = @"s";
        it(@"s isvalid string", ^{
            BOOL isvalid = [SHYValidJudge isValidString:s];
            [[@(isvalid) should] equal:@(YES)];
        });
    });
});
SPEC_END

